package com.xkcyy.module.a;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;

/**
 * ${NAME}
 *
 * @author yuand
 * @date ${DATE}
 */
@Configuration
public class ModuleAConfig implements CommandLineRunner {
    @Value("${server.port}")
    private String port;

    @Value("${spring.application.name}")
    private String appName;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(this.appName);
        System.out.println(this.port);
    }
}